package test3.A1_4;

// 支付方式类
abstract class Payment {
    private double amount; // 金额

    // 构造函数
    public Payment(double amount) {
        this.amount = amount;
    }

    // Getter和Setter方法
    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }
}
